package com.auto.video.tv;

import android.app.Application;
import android.content.Context;
import android.os.Handler;

import androidx.multidex.MultiDex;

import com.auto.tv.serial.comn.utils.PrefHelper;

public class AutoVideoApplication extends Application {
    private static AutoVideoApplication application;
    private static int mainTid;
    private static Handler handler;

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
        mainTid = android.os.Process.myTid();
        handler = new Handler();
        PrefHelper.initDefault(this);

        MultiDex.install(this);

    }

    public static Context getApplication() {
        return application;
    }

    public static int getMainTid() {
        return mainTid;
    }

    public static Handler getHandler() {
        return handler;
    }
}